//过滤器
import Vue from "vue"
// 过滤价格
Vue.filter("filterPrice", p => p.toFixed(2))

// 过滤时间
Vue.filter("filterTime", t => {
    let d = new Date(t)
    return d.toLocaleDateString() + " " + d.toLocaleTimeString()
})